<?php

// +----------------------------------------------------------------------
// | 权限组控制器
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 微尘 <yicmf@qq.com>
// +----------------------------------------------------------------------

namespace app\controller\pay\admin;


use yicmf\builder\Table;
use app\controller\admin\Common;
use app\model\ucenter\Sms as SmsModel;

class Sms extends Common
{
    protected function initialize()
    {
        parent::initialize();
    }

    public function _filter()
    {
        $where[] = ['status', '>', -2];
        return $where;
    }

    public function index()
    {

        $where = $this->_filter();


        //ID 姓名 手机号 等级  提现金额 手续费 提现费 实际入账  审核状态 驳回原因 申请时间  审核时间 事项 时间 资金类型
        // 显示页面
        $builder = new Table();
        $builder->model(SmsModel::class)
            ->where($where)
//                ->suggest('高等级可以对低等级用户进行操作或者授权')
//            ->searchSelect('is_bind', '划拨状态', $statusOptions)
            ->searchTextLike('mobile', '手机号')
//            ->searchText('sn_end', '机身结束号')
//            ->searchText('result_count', '显示总数')
//            ->keyLeftLeader('checkbox')
            ->keyId()
            ->keyText('mobile', '手机号')
            ->keyText('code', '验证码')
            ->keyText('out_id', '反馈')
            ->keyText('type', '类型')

//            ->keyText('order_id', '关联订单')
            ->keyCreateTime('提交时间');
        return $builder->fetch();
    }


}
